<template>
    <div class="item-cell-group" >
        <van-cell :title="item.title||''"  :size="item.size" :style="{'color':item.fontColor}" />
        <template v-if="item.children.length>0">
            <item-cell v-for="(child,index) in item.children"
                       :key="index"
                       :title="child.title"
                       :icon="child.icon"
                       :fontColor="item.fontColor"
                       :to="child.to"
            ></item-cell>
        </template>
    </div>
</template>

<script>
    import ItemCell from './ItemCell'
    export default {
        name: "ItemCellGroup",
        components:{
            ItemCell
        },
        props:{
            item:{
                type:Object,
                required: true
            }
        },

    }
</script>

<style lang="less" scoped>
.item-cell-group{
    .icon{
        width: 25px!important;
        vertical-align: top;
    }
    .custom-text{
        display: inline-block!important;
        height: 24px!important;
        line-height: 24px!important;
        margin-left: 10px;
        font-size: 16px;
    }
}
</style>
